#include "syscall.h"

int
main()
{
    SpaceId newProc;
    OpenFileId input = ConsoleInput;
    OpenFileId output = ConsoleOutput;
    char prompt[2], ch, buffer[60], ls[3], pwd[4];
    int i;

    prompt[0] = '-';
    prompt[1] = '-';
    ls[0] = 'l';
    ls[1] = 's';
    pwd[0] = 'p';
    pwd[1] = 'w';
    pwd[2] = 'd';
    while( 1 )
    {
	Write(prompt, 2, output);
	Read(&buffer, 59, input); 
	/*if(*buffer == *ls)
	{
		newProc = Exec("../test/ls");
	}
	else if(*buffer == *pwd)
	{
		newProc = Exec("../test/pwd");
	}
	else*/
	newProc = Exec(buffer);
	Join(newProc);
    }
}

